package com.wlsk.license.service.feign;

import com.wlsk.license.common.constant.FeignServiceConstant;
import com.wlsk.license.common.result.Result;
import com.wlsk.license.dto.request.feign.UserIdReqDto;
import com.wlsk.license.dto.response.feign.CenterManagerInfoResultDto;
import com.ykx.centerManager.provider.dto.StationCompanyDto;
import com.ykx.centerManager.provider.dto.StationCompanyUpdateReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @description: 管理用户
 * @author: liuzhangbin
 * @date: 2025/2/24
 */
@Component
@FeignClient(name = FeignServiceConstant.PLAT_ADAPTER, contextId = "centerManagerClient")
public interface CenterManagerClient {

    /**
     * 查询管理员信息
     *
     * @param reqDto
     * @return
     */
    @PostMapping("/centerManager/getUserInfoById")
    Result<CenterManagerInfoResultDto> getUserInfoById(@RequestBody UserIdReqDto reqDto);

    /**
     * 查询承运商信息
     *
     * @param rq
     * @return
     */
    @PostMapping("centerManager/selectCompanyList")
    Result<List<StationCompanyDto>> selectCompanyList(@RequestBody StationCompanyUpdateReq rq);
}
